<?php
//代写服务
namespace Home\Controller;
use Think\Controller;
class CloudSearchController extends CommonController {
	

    public function searchRelease(){

     

		$this->display();
    }
    public function notAudit(){

     

		$this->display();
    }
    public function resultsShow(){

     

		$this->display();
    }

    public function addSearchOrder(){
        $map=I('post.');
        
        if(!$map['search_title'] || !$map['search_info']){
            $this->error("","searchRelease");
        }
        $data=array(
            'user_id'=>$_SESSION['user']['id'],
            'search_title'=>$map['search_title'],
            'search_content'=>$map['search_content'],
            'search_info'=>$map['search_info'],
            'search_keywords'=>implode(",", $map['search_keywords']),
            'add_time'=>date("Y-m-d H:i:s")
            );
        $res=M('search_order')->add($data);
        if($res){
            $this->success("","searchRelease");
        }else{
            $this->error("","searchRelease");
        }

    }

}